﻿using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;
using PairingMatrix.Common.Enum;

namespace PairingMatrix.View.Converter
{
    public class BoolToColorHighlightConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if(value is bool)
            {
                if ((bool)value == true)
                    return Colors.Red;
            }
            return Colors.Black;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
